﻿<%@ Page Language="C#" MasterPageFile="~/Navigations.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="WeChat.Manager.index" Title="首页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" language="javascript">
        function tips(){
            $("#myTip").modal("show");
            $("#Sync").removeAttr("disabled");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container">
      <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10 col-sm-12">
        <div class="jumbotron">
          <p></p>
          <h1>欢迎登陆微信管理系统！</h1>
          <p> </p>
          <p>若有数据更新，请先点击同步数据再进行操作。<a style="font-size:medium" href="http://mp.weixin.qq.com/wiki/10/6380dc743053a91c544ffd2b7c959166.html" target="_blank">点此查看错误返回码说明</a></p>
          <p>
              <asp:Button ID="Sync" runat="server" class="btn btn-primary btn-lg" Text="同步素材" OnClick="Synchronous" />
              <asp:Button ID="SyncUser" runat="server" class="btn btn-primary btn-lg" Text="同步用户" OnClick="SynchronousUser" Visible="false" />
          </p>
       </div>
        </div>
        <div class="col-md-1"></div>
    </div>
    </div>
    
       <!--rating modal's content-->
<div class="modal fade" id="myTip" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
          <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal">&times;</button>
              <h4>提示</h4>
            </div><!--Modal header-->
            <div class="modal-body"><h3>数据同步成功!</h3>
            </div><!--Modal body-->
            <div class="modal-footer">
              <a href="#" class="btn btn-default" data-dismiss="modal" >关闭</a>
            </div><!--Modal footer-->
      </div><!-- /.modal-content -->
</div><!-- /.modal -->   
</asp:Content>
